package org.example.auth.service;

import org.example.auth.contract.request.AuthorityRequestForSave;
import org.example.auth.contract.response.AuthorityResponse;
import org.example.auth.contract.request.AuthorityRequestForPage;
import org.example.auth.contract.response.AuthorityResponseForRole;
import org.example.auth.model.entity.Authority;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface AuthorityService {
    Authority save(AuthorityRequestForSave request);

    List<Authority> getAllList();

    void deleteAuthority(Long id);

    Page<AuthorityResponse> getPage(AuthorityRequestForPage request, Pageable pageable);

    /**
     * 获取某个角色的权限啊
     */
    AuthorityResponseForRole groupAuthorityByRoleId(Long roleId);
}
